package com.bulemobi.activity.Ac_CarService;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;
import com.bulemobi.net.tsz.afinal.annotation.view.ViewInject;
import com.bulemobi.view.BaseActivity;
import com.jsyh.hcb.R;

/***
 * @author zegnys  添加应急事件
 * 
 * 
 *  2014年9月23日 10:11:22
 * 
 * 
 * */
public class Ac_add_UrgencyThing extends BaseActivity implements OnClickListener{
	
	@ViewInject( id= R.id.tv_back)
	 TextView tv_back;//返回
	
	@ViewInject(id = R.id.et_system_time)
	EditText  et_system_time;//系统当前时间
	
	@ViewInject(id = R.id.et_choice_bank_card)
	EditText et_choice_bank_card;//请选择银行卡
	
	@ViewInject(id = R.id.sp_safe_phone)
	Spinner sp_safe_phone;//保险电话
	
	@ViewInject(id = R.id.tv_incident_details)
	TextView  tv_incident_details;//事件详情
	
//	@ViewInject(id =R.id.ibtn_add_car_picture)
//	ImageButton ibtn_add_car_picture;//添加车辆图片
	
	@ViewInject(id =R.id.btn_urgency_save)
	Button btn_urgency_save;//保存
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ac_add_urgency_thing);
		initView();
	}

	public void initView(){
		tv_back.setOnClickListener(this);
		btn_urgency_save.setOnClickListener(this);
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, new String[]{"67890653","67890652","67890651"});
		//设置下拉列表的适配器
		//sp_safe_phone.setBackgroundResource(R.drawable.xj);
		sp_safe_phone.setAdapter(adapter);
		
	}
	@Override
	public void onClick(View v) {
         switch (v.getId()) {
		case R.id.tv_back://返回
			 
			 finish();
			break;
		case R.id.btn_urgency_save://保存
			
			break;

		default:
			break;
		}
		
		
	}

}
